﻿using cloud_store_rest_api_window_phone;
using Microsoft.Phone.Controls;

namespace PhoneTest
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            var dropBoxApi = new WindowPhoneDropBoxAPI("pj2vx2jvcnh4y35", "ar25y40ty4q2bof", "skv80w38fydupi9", "q85qna6gcb0xce9");
            dropBoxApi.GetFileString("access_token", GetFileCallBack);
        }

        private void GetFileCallBack(string text)
        {
            PageTitle.Text = text;
        }
    }
}